package com.tjshop.android;

import com.actionbarsherlock.view.MenuItem;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.Toast;

/**
 * 活动详情界面。
 * 
 * @author FIMH
 * @since 2015-01-03
 */
public class AboutApp extends AbsBaseActionBarActivity implements
		View.OnClickListener {

	private WebView mWebView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about_app);
		mWebView = (WebView) findViewById(R.id.event_detail_content);
		WebSettings webSettings = mWebView.getSettings();
		webSettings.setJavaScriptEnabled(true);
		mWebView.loadUrl("http://www.baidu.com");
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			finish(); // 因为有可能从不同的Activity调用，所以finish()返回即可
			return true;
		default:
			return super.onOptionsItemSelected(item);

		}
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		default:
			break;
		}
	}
}
